﻿//------------------------------------------------------------------------------
//Author: Christoph van der Fecht
//CodePlex: http://www.codeplex.com/site/users/view/ChristophvdF
//
//Copyright(c) Christoph van der Fecht
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SerienNewsReader.Model;

namespace SerienNewsReaderMVVM.EventArguments
{
    /// <summary>
    /// Event arguments for <see cref="DownloadFinished"/> event
    /// </summary>
    public class DownloadFinishedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets the list of series that where loaded
        /// </summary>
        public List<RSSFeed> Series { get; private set; }

        /// <summary>
        /// Gets the list of movies that where loaded
        /// </summary>
        public List<RSSFeed> TvMovies { get; private set; }

        /// <summary>
        /// Initializes a new instance of class <see cref="DownloadFinishedEventArgs"/>
        /// </summary>
        /// <param name="series">Loaded series</param>
        /// <param name="movies">Loaded movies</param>
        public DownloadFinishedEventArgs(List<RSSFeed> series, List<RSSFeed> movies)
        {
            if (series != null || series.Count != 0)
            {
                this.Series = series;
            }
            else
            {
                this.Series = null;
            }

            if (movies != null || movies.Count != 0)
            {
                this.TvMovies = movies;
            }
            else
            {
                this.TvMovies = null;
            }
        }
    }
}
